package se.thoka.twt.client.utils.validation;


/**
 * @author Thobias Karlsson, Thoka
 * @since 8 jan 2010
 */
public interface HasValidation {

	/**
	 * Adds a validation
	 * 
	 * @param validation The validation
	 */
	void addValidation(Validation validation);

	/**
	 * Removes a validation
	 * 
	 * @param validation The validation
	 * @return <code>true</code> if validation was removed
	 */
	boolean removeValidation(Validation validation);

	/**
	 * @return <code>true</code> if valid
	 */
	boolean validate();
}
